<%@page import="com.situ.web.entity.User"%>
<%@page import="com.situ.web.entity.Student"%>
<%@page import="com.situ.web.entity.PageBean"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="lib/bootstrap-3.3.7-dist/css/bootstrap.css" />

<style 	type="text/css">
	.login{
		margin-left:800px;
	}
</style>
</head>
<body>

	<a onclick="chooseCourse()" class="btn btn-info">选课</a>
	<br />
	<br />
	<%-- 	${list} --%>
	<table class="table  table-striped table-bordered table-hover table-condensed">
		<tr>
			<td>ID</td>
			<td>班级</td>
			<td>班级课程</td>
			<td>课程学分</td>
		</tr>
		<c:forEach items="${list}" var="map">
			<tr>
				<td>${map['id']}</td>
				<td>${map['name']}</td>
				<td>${map['courseName']}</td>
				<td>${map['credit']}</td>
			</tr>
		</c:forEach>
	</table>
	
	<script src="js/jquery-1.11.3.js" type="text/javascript" charset="utf-8"></script>
	<script src="lib/layer/layer.js" type="text/javascript" charset="utf-8"></script>
	<script src="lib/mylayer.js" type="text/javascript" charset="utf-8"></script>
	<script src="lib/util.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		function chooseCourse(){
			layer.open({
				type:2,
				title:"选课",
				content:"${pageContext.request.contextPath}/chooseCourse.jsp",
				btn:["关闭"],
				skin: 'layui-layer-lan',
				area:["50%","50%"]
			})
		}
	</script>
</body>
</html>